package com.guoyh.bilbase.ext

/**
 * @CreateDate: 2021/8/24 4:21 下午
 * @Author: guoyh
 * @Description: java类作用描述
 */
fun Boolean.yes(yes: () -> Unit): Boolean {
    if (this) {
        yes.invoke()
    }
    return this
}

fun Boolean.no(no: () -> Unit): Boolean {
    if (!this) {
        no.invoke()
    }
    return this
}


